home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / multi-3a / frmloadi.frm < prev    next >
Text File  |  1999-09-03  |  2KB  |  78 lines

  1. VERSION 5.00
  2. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
  3. Begin VB.Form frmloading 
  4.    BorderStyle     =   4  'Fixed ToolWindow
  5.    Caption         =   "Multi-Search"
  6.    ClientHeight    =   645
  7.    ClientLeft      =   45
  8.    ClientTop       =   285
  9.    ClientWidth     =   2775
  10.    ClipControls    =   0   'False
  11.    ControlBox      =   0   'False
  12.    LinkTopic       =   "Form2"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   645
  16.    ScaleWidth      =   2775
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   2  'CenterScreen
  19.    Begin VB.Timer Timer1 
  20.       Enabled         =   0   'False
  21.       Interval        =   10
  22.       Left            =   2400
  23.       Top             =   0
  24.    End
  25.    Begin ComctlLib.ProgressBar ProgressBar1 
  26.       Height          =   135
  27.       Left            =   120
  28.       TabIndex        =   1
  29.       Top             =   480
  30.       Width           =   2535
  31.       _ExtentX        =   4471
  32.       _ExtentY        =   238
  33.       _Version        =   327682
  34.       Appearance      =   1
  35.    End
  36.    Begin VB.Label Label1 
  37.       Alignment       =   2  'Center
  38.       BackStyle       =   0  'Transparent
  39.       Caption         =   "INITIALIZING SEARCH ENGINES"
  40.       Height          =   495
  41.       Left            =   0
  42.       TabIndex        =   0
  43.       Top             =   120
  44.       Width           =   2775
  45.    End
  46. End
  47. Attribute VB_Name = "frmloading"
  48. Attribute VB_GlobalNameSpace = False
  49. Attribute VB_Creatable = False
  50. Attribute VB_PredeclaredId = True
  51. Attribute VB_Exposed = False
  52.  
  53. Private Sub Command1_Click()
  54.  
  55. End Sub
  56.  
  57. Private Sub Form_Load()
  58. 'Start the Timer to control the Progress Bar
  59. Timer1.Enabled = True
  60. End Sub
  61.  
  62. Private Sub Timer1_Timer()
  63. 'Increase the % complete of progress bar
  64. ProgressBar1.Value = ProgressBar1.Value + 5
  65. If ProgressBar1.Value = 45 Then
  66.  'when we reach 45% then load Form1 into memory
  67.  Load Form1
  68. End If
  69. If ProgressBar1.Value = 100 Then
  70.  'when 100% complete, hide this form
  71.  frmloading.Visible = False
  72.  'show the main form
  73.  Form1.Visible = True
  74.  'disable this timer
  75.  Timer1.Enabled = False
  76. End If
  77. End Sub
  78.